<?php

namespace app\admin\controller;
use think\Controller;

/**
 * Created by PhpStorm.
 * User: ibm
 * Date: 2018/8/13
 * Time: 17:23
 */

class Auth extends Controller{

    public function initialize()
    {
        if(!session('username')){
            $this->redirect('login/index');
        }
    }
}